//
// Created by antler on 2018/11/6.
//

#ifndef LUA_LOG_H
#define LUA_LOG_H

#include <android/log.h>

#define LOG_LEVEL ANDROID_LOG_DEFAULT
#define LOG_TAG "antler_""LUA-JNI"

#define LOGV(...) if (LOG_LEVEL <= ANDROID_LOG_VERBOSE) {__android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__);}
#define LOGD(...) if (LOG_LEVEL <= ANDROID_LOG_DEBUG) {__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__);}
#define LOGI(...) if (LOG_LEVEL <= ANDROID_LOG_INFO) {__android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__);}
#define LOGW(...) if (LOG_LEVEL <= ANDROID_LOG_WARN) {__android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__);}
#define LOGE(...) if (LOG_LEVEL <= ANDROID_LOG_ERROR) {__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__);}

#endif //LUA_LOG_H